package com.nulldev.util.web.HttpClient;

public enum Version {
	HTTP_0_9(0.9),
	HTTP_1_0(1.0),
	HTTP_1_1(1.1),
	HTTP_2_0(2.0),

	/* QUIC */

	HTTP_3_0(3.0),
	HTTP_3_0_QUIC_V1(3.0),
	HTTP_3_0_QUIC_V2(3.0),
	HTTP_3_0_draft_34(3.0),

	;

	private final double ver;

	private Version(final double ver) {
		this.ver = ver;
	}

	public double getVersion() {
		return this.ver;
	}

	public boolean isHTTP3() {
		return this.ver == 3.0d;
	}
}
